package com.example.homework.db.apis

import com.example.homework.utils.CONSTANTS
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory

object RetrofitService {
    private val retrofit: Retrofit = Retrofit.Builder().baseUrl(CONSTANTS.URL)
        .addConverterFactory(MoshiConverterFactory.create()).build()
    val charactersApi: CharactersApi = retrofit.create(CharactersApi::class.java)
    val episodesApi: EpisodesApi = retrofit.create(EpisodesApi::class.java)
    val locationsApi: LocationsApi = retrofit.create(LocationsApi::class.java)
}